#include <stdint.h>
#include "uip-conf.h"
#include "uip.h"
#include "dm9000x.h"

extern void _delay_ms(unsigned short ms);

void netdev_init(unsigned char *mac)
{
    dm9000x_inital(mac);
}

void netdev_reset(unsigned char *mac)
{
    dm9000x_Reset(mac);
}

unsigned int netdev_read(void)
{	
	return dm9000x_receivepacket(uip_buf, UIP_BUFSIZE);
}


void netdev_send(void)
{
    dm9000x_sendpacket(uip_buf, uip_len);
}

